<template>
    <el-main>
        <el-main class="ep-body">            
            <el-collapse v-model="activeNames" >
            <el-collapse-item title="辅助器具机构列表" name="1">

            <el-card class="ep-card">
            
                    <ep-table :data="tableData1"  :pager="20" :titleFilter="demo1" isCodeType rowDbClick>
                        <ep-table-column sortable :datas="{formData: form}" name="akb020" header="辅助器具机构编号"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" name="aae044" header="辅助器具机构名称"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" editor="select" codetype="AAZ065" name="aaz065" header="发放银行"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" name="aae010" header="银行账号"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" name="aae009" header="银行开户名"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" name="bae040" header="开户行行号"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" name="bac049" header="开户行名称"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" editor="select" name="bae011" codetype="BAE007" header="收款账户省份"></ep-table-column>
                        <ep-table-column sortable :datas="{formData: form}" editor="select" name="bae012" codetype="BAE008" header="收款账户地市"></ep-table-column>
                    </ep-table>
            </el-card>
            </el-collapse-item>
                            <el-form :model="form" ref="form" :rules="rules">

            <el-collapse-item title="辅助器具机构信息" name="2">
        	<el-card class="ep-card">
					<el-row :gutter="10">
                    
                         <ep-input colspan="8" label="辅助器具机构编号" name="akb020" :property="form.akb020" placeholder="请输入辅助器具机构编号"
                                  p="R" ></ep-input>
                        <ep-input colspan="8" label="辅助器具机构名称" name="aae044" :property="form.aae044" placeholder="请输入辅助器具机构名称"
                                  p="R" ></ep-input>
                        <ep-input colspan="8" label="邮政编码" name="aae007" :property="form.aae007" placeholder="请输入邮政编码"
                                  p="E" ></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="联系人"  name="aae004" :property="form.aae004" placeholder="请输入联系人"
                                  p="R" ></ep-input>
                        <ep-input colspan="8" label="联系电话" name="aae005" :property="form.aae005" placeholder="请输入联系电话"
                                  p="R" ></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                                <ep-select colspan="8" label="联系地址" name="bac030" :property="form.bac030"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bac031" :property="form.bac031"
                                            placeholder="请选择市" codetype="BAE012" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bac030',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bac032" :property="form.bac032" 
                                            placeholder="请选择区县" codetype="BAE013" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bac031',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                            </el-row>  
        	</el-card>
            </el-collapse-item>
            <el-collapse-item title="银行发放信息" name="3">
                <el-card class="ep-card">
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" placeholder="请选择发放银行"
                                   p="R" :datas="{formData: form}" codetype="AAZ065" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input  colspan="8" label="银行账号" name="aae010" :property="form.aae010" placeholder="请输入银行账号"
                                   p="R" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                        <ep-input  colspan="8" label="银行开户名" name="aae009" :property="form.aae009" placeholder="请输入银行开户名"
                                   p="R" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                    </el-row>
                    <el-row :gutter="10">
                        <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
                        <ep-input  colspan="16" label="开户银行名称" name="bac049" :property="form.bac049"
                                   p="R,D" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                    </el-row>
                    <el-row :gutter="10">
                           <ep-select colspan="8" label="收款账户省份" name="bae011" :property="form.bae011"
                                    placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                        <ep-select colspan="8" label="收款账户地市" name="bae012" :property="form.bae012"
                                    placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                    SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                    </el-row>          
                </el-card>
            </el-collapse-item>
                            </el-form>
            </el-collapse>
            <el-card class="ep-card">
                <el-row type="flex" justify="center">
					<ep-saveButton id="doSave" top="20" type="primary" bottom="20"
									:datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    <ep-button id="query" top="20" type="primary" api="doQuery" bottom="20"
                    :datas="{formData: form,tableData1:tableData1}" name="查询"></ep-button>
                    
				</el-row>
            </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/DevicesManagementJS.js"></script>
